$(document).ready(function () {			
	$(".fancybox").fancybox();	
	$(".viewImage").click(function () {
		var text = $(this).attr("href");
		var path = "images/imgArticle/" + text + "/";
		var url = "controller/ajaxShowArticleImage.php?path=" + path;
		$.ajax	({
	  		type: "GET",
	  		url: url      		  
		})
		.done(function( msg ){
							$("#imagelist_"+text).empty();  
		    				$("#imagelist_"+text).html(msg);
						});
    	return false;
	});
	
});